
import QtQuick 2.0
import "../Keyboard"

Rectangle {
    id:root
    anchors.margins: 100
    anchors.fill: parent
    signal enter()
    property Item rp: root
    property string topicname: topic.valeKey
    color:Qt.rgba(255,255,0,0.7);

    Text{
        id:user
        text: "Topic Name"
        font.pointSize: 20
        anchors.margins: 20
        anchors.bottom: topic.top
        anchors.horizontalCenter:  topic.horizontalCenter
    }

    VTextInput{
        id:topic
        anchors.horizontalCenter: parent.horizontalCenter
        y:50
        width: 200
        height: 50
        window_x: x+parent.anchors.margins
        window_y: y+parent.anchors.margins
        maxwindow_h : parent.height+parent.anchors.margins*2
        maxwindow_w: parent.width+parent.anchors.margins*2
        pass: false
        txt:"Topic Name"
        onEnter: {
            root.enter();
        }

    }



}
